//
//  ViewController.m
//  Lago
//
//  Created by GivenBmli on 16/7/18.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "ViewController.h"
#import "UIImage+Image.h"
#import "PassView.h"
#import "PrefixHeader.pch"
@interface ViewController ()<UITextFieldDelegate>
/**图像背景*/
@property (nonatomic , retain)UIImageView *imageBackground;
/**图像用户*/
@property (nonatomic , retain)UIImageView *imageUser;
/**图像密码*/
@property (nonatomic, strong) UIImageView *imagePass;
@property (nonatomic, strong) UIView *viewBlur;
@property (nonatomic, strong) UILabel *lableLine;
/**设置Logo*/
@property (nonatomic, strong) UIImageView *imageLagou;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.imageBackground = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDETH, HEIGHT)];
    self.imageBackground.image = [UIImage imageNamed:@"welcome_2.jpg"];
    [self.view addSubview:_imageBackground];
    self.viewBlur = [[UIView alloc] initWithFrame:CGRectMake(0, 0, WIDETH, HEIGHT)];
    self.viewBlur.backgroundColor = [UIColor lightGrayColor];
    self.viewBlur.alpha = 0.3;
    [self.view addSubview:_viewBlur];

    [self creatLagouImage];
}
/**设置LoGo*/
- (void)creatLagouImage {
    self.imageLagou = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDETH * 0.245, HEIGHT * 0.225)];
    self.imageLagou.backgroundColor = [UIColor clearColor];
    self.imageLagou.center = CGPointMake(self.viewBlur.frame.size.width / 2, HEIGHT * 0.23);
    self.imageLagou.image = [UIImage imageNamed:@"logo_lagou@2x.png"];
    [self.viewBlur addSubview:_imageLagou];

}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
